//
//  CycleCurrentLocation.h
//  Septong
//
//  Created by dihuijun on 17/6/8.
//  Copyright © 2017年 mac. All rights reserved.
//   获取当前位置

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


///回调省市区，省市区街道信息
typedef void(^getCurrentAddressAndLocationBlock)(NSString *country,NSString *state,NSString *city,NSString *SubLocality,NSString *Street,NSString *detailAddressNoCountry,NSString *detailAddressNoCountry2,NSString *detailAddress,CGFloat longtitude,CGFloat latitude);//latitude纬度，longtitude经度

@interface CycleCurrentLocation : NSObject
/** 获取当前位置 */
- (void)Cycle_GetCurrentLocation;

///初始化
+ (instancetype)sharedCycleCurrentLocation;



/**   返回国家省市区，以及具体省市区下面的街道号   */
@property (nonatomic,copy) getCurrentAddressAndLocationBlock addressBlock;


/**
 
 
   /// 使用获取定位地址的时候  强引用此类
 _currentAddress = [CycleCurrentLocation sharedCycleCurrentLocation];
 
 _currentAddress.addressBlock = ^(NSString *city,NSString *currentAddress,CGFloat latitude,CGFloat longtitude){
 NSLog(@"%@",currentAddress);
 
 };
 
 
 
 */




/** 2.根据 2 点经纬度计算距离（千米） */
+(double)cycle_LantitudeLongitudeDist:(double)lon1 other_Lat:(double)lat1 self_Lon:(double)lon2 self_Lat:(double)lat2;


/**  3. 系统自带的方法计算距离（千米）*/
+ (double)cycle_startLatitude:(double)startlat startLongtitude:(double)startLon endLatitude:(double)endLat endLongtitude:(double)endLon;


/**
 * 4.弹出弹窗，显示当前设备上安装的定位app(eg:高德地图，百度地图)，选择后跳转到定位app上定位
 * 注意添加白名单：
 在 info.plist 文件里面，添加一个字段：LSApplicationQueriesSchemes里面在加上
 comgooglemaps 谷歌
 iosamap  高德
 baidumap 百度
 */
+ (void)cycle_alertLocationWithLatitude:(CGFloat)latitude longitude:(CGFloat)longitude;



@end
